package com.gsmr.controller;

import java.awt.Desktop;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.Queue;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.gsmr.util.PropertityUtil;
@Controller
@RequestMapping("/main")

public class MainController {
	@RequestMapping("/openScanGate")
	public String gsmrMain(){
			
		return null;
	}
	
	
	public static void openFile(String exePath) {
		final Runtime runtime = Runtime.getRuntime();
		Process process = null;
		final String cmd = exePath;
		try {
			process = runtime.exec(cmd);
			
			// 等待 Process 执行完毕再继续向下运行，取消后则不用等
			//process.waitFor();
		} catch (final Exception e) {
			e.printStackTrace();
		}
	}
	
}